package com.zchat.android.provider;

import com.zchat.api.log.Logger;
import com.zchat.api.util.ZChatSetting;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;

/**
 * 
 * @author Oliverzhu
 *	2012/6/13
 */
public class DBContentProvider extends ContentProvider {
	private static final String TAG = "DBContentProvider";
	private static boolean DEBUG = ZChatSetting.DEBUG;
	private DBHelper dbHelper;

	@Override
	public boolean onCreate() {
		if(DEBUG) Logger.info(TAG+"-on create...");
		dbHelper = DBHelperImpl.getInstance(this.getContext());
		return true;
	}
	@Override
	public int delete(Uri arg0, String arg1, String[] arg2) {
		return 0;
	}

	@Override
	public String getType(Uri arg0) {
		return null;
	}

	@Override
	public Uri insert(Uri arg0, ContentValues arg1) {
		return null;
	}

	@Override
	public Cursor query(Uri uri, String[] projection, String selection,
			String[] selectionArgs, String sortOrder) {
		return null;
	}

	@Override
	public int update(Uri uri, ContentValues values, String selection,
			String[] selectionArgs) {
		return 0;
	}

}
